package com.ea.admin.pojo.param.department;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EditDepartmentParam {
    @ApiModelProperty(value = "部门的id-主键", required = true)
    @NotBlank(message = "部门的id不能为空")
    private String deptId;

    @ApiModelProperty("上级部门的id")
    private String supDeptId;

    @ApiModelProperty(value = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    @Size(max = 20, message = "部门名称不能超过20个字符")
    private String deptName;

    @ApiModelProperty(value = "部门联系人id", required = true)
    // @NotBlank(message = "部门联系人id不能为空")
    private String deptContactId;
}
